import req from "/@/api/req";
import { IndustryItem } from "./models";

export enum Api {
  addIndustry = "api/system/industrys/addIndustry",
  deleteIndustryByIds = "api/system/industrys/deleteIndustryByIds",
  getAllIndustrys = "api/system/industrys/getAllIndustrys",
  updateIndustry = "api/system/industrys/updateIndustry",
  getIndustrysPage = "api/system/industrys/page",
}

export function getAllIndustrys() {
  return req.get<IndustryItem[]>(
    {
      url: Api.getAllIndustrys,
    },
    {
      useGlobalLoading: false,
    }
  );
}
